/* 
 * File:   main.cpp
 * Author: AbDuLlaH
 *
 * Created on February 2, 2015, 7:51 PM
 */

#include<iostream>
#include<string>
#include <cstdlib>
#include"mainDriver.h"
#include"miscFunction.h"
#include "AdminAccount.h"

using namespace std;
/*
int main() 
{
    mainDriver mainP;
    
    MemberAccount userAcc;
    
    drawLine('=',35);
    cout << "Welcome to the Hotel Review System" << endl;
    drawLine('=',35);
    
    cout << endl << "Login to Proceed" << endl;
    drawLine('-',17);
    cout << endl;
    
    userAcc = mainP.login();
    cout << endl;
    
    bool continueOption = true;
    string userKeyStr;
    char* userKey = new char;
    userKey[0] = ' ';
    
    drawLine('#',(userAcc.getMemberName().length() + 9));
    cout << "Welcome " << userAcc.getMemberName() << "!" << endl;
    drawLine('#',(userAcc.getMemberName().length() + 9));
    cout << endl;        
    
    while(userKey[0] != 'g')
    {
        cout << "Choose one the Options Below: " << endl;
        cout << "a)Search Hotel (For its informations)" << endl;
        cout << "b)View Permitted Hotel that can make a Review" << endl;
        cout << "c)Create Hotel Review" << endl;
        cout << "d)View All Hotel Reviews" << endl;
        cout << "g)Exit" << endl;
        
        cout << endl << "Your Option : " ;
        cin >> userKeyStr;
        strcpy(userKey,userKeyStr.c_str());
        cout << endl;
        
        if(userKeyStr.length() > 1)
            cout << "Error: Detected a Sentence. Retry!" << endl << endl;
        else if((userKey[0] = tolower(userKey[0])) && (!(userKey[0] >= 'a' && userKey[0] <= 'g')))
        {
            cout << "Error : Invalid Option!. Retry!" << endl << endl;
        }
        else
        {            
            switch(userKey[0])
            {
                case 'a' : 
                            userAcc.searchHotel();
                    break;
                    
                case 'b' :
                            userAcc.getReviewGrantedFor();
                            userAcc.viewPermitedHotel();      
                    break;
                    
                case 'c' : 
     
                    break;
                    
                case 'd' : 
                            userAcc.viewHotelReview();
                    break;
                    
                case 'e' : 

                    break;
                    
                case 'f' : 

                    break;
                    
                case 'g' : cout << endl << "Exiting Search Hotel ... " << endl;
                    break;
            }
        }
        
  //      drawLine('=', 50);
    }
    
    mainP.logout();
}

*/

int main(){
    
    AdminAccount anAccount;
    cout<<"example";
    anAccount.viewHotelReview();
    
    return 0;
}